package com.ruoyi.system.api.factory;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.cloud.openfeign.FallbackFactory;
import org.springframework.stereotype.Component;

import com.ruoyi.system.api.RemoteCommonService;

@Component
public class RemoteCommonFallbackFactory implements FallbackFactory<RemoteCommonService>{

	private static final Logger log = LoggerFactory.getLogger(RemoteCommonFallbackFactory.class);
	
	@Override
	public RemoteCommonService create(Throwable cause) {
		log.error("RemoteCommonService服务调用失败:{}", cause.getMessage());
		return null;
	}

}
